package engine.systems.update.threshold
{
	import org.osflash.signals.Signal;

	public class ThresholdData
	{
		public var component:Class;
		public var property:String;
		public var value:Number;
		public var comparator:String;
		internal var inside:Boolean = false;
		
		public var entered:Signal = new Signal();
		public var exited:Signal = new Signal();
		
		public function ThresholdData(component:Class, property:String, comparator:String, value:Number)
		{
			this.component 	= component;
			this.property 	= property;
			this.comparator	= comparator;
			this.value 		= value;
		}
		
		public function destroy():void
		{
			this.entered.removeAll();
			this.exited.removeAll();
			this.entered 	= null;
			this.exited 	= null;
		}
	}
}